/*
package com.chinh.config;

import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;

*/
/**
 * @author chinh
 * @date 2021/1/7
 *//*

@Component
public class ChinhSmartLifecycle implements SmartLifecycle {

	private boolean isRunning = false;

	@Override
	public void start() {
		System.out.println("ChinhSmartLifecycle:start");
		isRunning = true;
	}

	@Override
	public void stop() {
		System.out.println("ChinhSmartLifecycle:stop");
		isRunning = false;
	}

	@Override
	public boolean isRunning() {
		return isRunning;
	}

	@Override
	public boolean isAutoStartup() {
		return true;
	}

	@Override
	public void stop(Runnable callback) {
		callback.run();
		isRunning = false;
	}

	@Override
	public int getPhase() {
		return 0;
	}
}
*/
